/*------------------------------------------------------------------------------
 * @FILE    MYSQL_CTL.H
 * @AUTHOR  GUOKEKE
 * @DATE    2025/03/28 09:45:04
 * @VERSION  V1.0
* ------------------------------------------------------------------------------*/

#ifndef __MYSQL_CTL_H__
#define __MYSQL_CTL_H__

#ifdef __cplusplus
#if __cplusplus
extern "C"{
#endif
#endif /* __cplusplus */
#include "flats.h"
#include<mysql/mysql.h>


#define MYSQL_CTL_MAX_USER_NUM  10
#define MYSQL_HOST "localhost"
#define MYSQL_PORT 3306
#define MYSQL_USER "root"
#define MYSQL_PASSWD "123456"
#define MYSQL_DATABASE "cgq" 


extern void mysql_ctl_init();
extern int execute_query(const char *sql);
extern void close_mysql_connection();


#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
#endif /* __MYSQL_CTL_H__ */